TQ3ElementCopyDuplicateMethod
You can define a method to copy the data of your custom element type when an element of that type is in a set being duplicated.
typedef TQ3Status (*TQ3ElementCopyDuplicateMethod) ( const void *fromInternalElement, void *toInternalElement);
fromInternalElement
- A pointer to the element data associated with an element having your custom element type.
toInternalElement
- On entry, a pointer to an empty, zeroed block of memory large enough to contain the element data associated with an element having your custom element type.
DESCRIPTION
YourTQ3ElementCopyDuplicateMethod
function should copy the element data pointed to by thefromInternalElement
parameter into the location pointed to by thetoInternalElement
parameter. This method is called whenever theQ3Object_Duplicate
function is used to duplicate a set or an attribute set that contains an element of your custom type.RESULT CODES
YourTQ3ElementCopyDuplicateMethod
function should returnkQ3Success
if it is successful andkQ3Failure
otherwise.